Fix tests for polarity of coords on output.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 25 Feb 2003 19:04:45 +0000 (19:04 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 25 Feb 2003 19:04:45 +0000 (19:04 +0000)
gpsbabel/magproto.c

index 5bc44b054e513c034dbe1641f4622c2315af9db8..ab038c2c8b560d823d61da3459bf741c2455177d 100644 (file)
@@ -1102,8 +1102,8 @@ mag_waypt_pr(const waypoint *waypointp)
        }
 
        sprintf(obuf, "PMGNWPL,%4.3f,%c,%09.3f,%c,%07.lf,M,%-.8s,%-.30s,%s",
-               lat, ilon < 0 ? 'N' : 'S',
-               lon, ilat < 0 ? 'E' : 'W',
+               lat, ilat < 0 ? 'S' : 'N',
+               lon, ilon < 0 ? 'W' : 'E',
                waypointp->position.altitude.altitude_meters == unknown_alt ?
                        0 : waypointp->position.altitude.altitude_meters,
                owpt,